package com.sxt.opd.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2020-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("opd_jiuzhen")
public class Jiuzhen implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 患者id
     */
    private Integer patientid;

    /**
     * 医生id
     */
    private Integer userid;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 就诊状态,1排队中,2就诊中,3已经交款
     */
    private Integer jiuzhenstatus;


    /**
     * 药单号
     */
    private String goodslistnum;


    /**
     * 总金额
     */
    private Double totalsum;


    /**
     * 排队号码
     */
    private Integer ordernum;

    /**
     * 操作人
     */
    private String operateperson;

    @TableField(exist=false)
    private Patient patient;
    /**
     * 医生名称
     */
    @TableField(exist=false)
    private String doctorname;
    /**
     * 部门名称,科室
     */
    @TableField(exist=false)
    private String menzhentitle;
    /**
     * 部门名称,科室id
     */
    @TableField(exist=false)
    private Integer deptid;


}
